#ifndef _I386_IO_H
#define _I386_IO_H

unsigned char in8(unsigned int port);
unsigned short in16(unsigned int port);
unsigned int in32(unsigned int port);
void out8(unsigned int port, unsigned int data);
void out16(unsigned int port, unsigned int data);
void out32(unsigned int port, unsigned int data);

void io_read(unsigned short port, void* buf, unsigned int n);
void io_write(unsigned short port, void* buf, unsigned int n);

#endif  /* _I386_IO_H */
